using UnityEngine;

public static class GameLanguage
{
	private static SystemLanguage currentDeviceLanguageSystem;

	private const bool _isTestLanguage = true;

	private const SystemLanguage _systemLanguageToTests = SystemLanguage.Polish;

	public static SystemLanguage GetSystemLanguageForDevice()
	{
		currentDeviceLanguageSystem = Application.systemLanguage;
		GetPersonalizedSystemLanguageOrDefault();
		return currentDeviceLanguageSystem;
	}

	private static void GetPersonalizedSystemLanguageOrDefault()
	{
		currentDeviceLanguageSystem = SystemLanguage.Polish;
		switch (currentDeviceLanguageSystem)
		{
		case SystemLanguage.Czech:
			currentDeviceLanguageSystem = SystemLanguage.Czech;
			break;
		case SystemLanguage.German:
			currentDeviceLanguageSystem = SystemLanguage.German;
			break;
		case SystemLanguage.Norwegian:
			currentDeviceLanguageSystem = SystemLanguage.Norwegian;
			break;
		case SystemLanguage.Polish:
			currentDeviceLanguageSystem = SystemLanguage.Polish;
			break;
		case SystemLanguage.Russian:
			currentDeviceLanguageSystem = SystemLanguage.Russian;
			break;
		case SystemLanguage.Slovenian:
			currentDeviceLanguageSystem = SystemLanguage.Slovenian;
			break;
		case SystemLanguage.Japanese:
			currentDeviceLanguageSystem = SystemLanguage.Japanese;
			break;
		case SystemLanguage.Finnish:
			currentDeviceLanguageSystem = SystemLanguage.Finnish;
			break;
		default:
			currentDeviceLanguageSystem = SystemLanguage.English;
			break;
		}
	}
}
